package com.wjp.banquet.common.bean;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author 王君平
 * @Date 2023/8/29 9:06
 * @Description
 */
@Data
public class Page implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("页码（默认为1）")
    private Integer pageNum = 1;
    @ApiModelProperty("每页行数（默认为10）")
    private Integer pageSize = 10;

    @ApiModelProperty(hidden = true)
    private String sortName;//后端用

    @ApiModelProperty(hidden = true)
    private String sortType;//后端用

    @ApiModelProperty("统一搜索框")
    private String searchValue;

    public String getOrderBy(){
        return " " + sortName + " " + sortType + " ";
    }


}
